package com.pearl.jacksonspringboot.demo.web;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperFactoryBean;

/**
 * @author TD
 * @version 1.0
 * @date 2024/4/16
 */
@Configuration
public class MvcConfig {

/*    @Bean
    public Jackson2ObjectMapperFactoryBean jacksonObjectMapper() {
        Jackson2ObjectMapperFactoryBean factoryBean = new Jackson2ObjectMapperFactoryBean();
        factoryBean.setIndentOutput(true);
        factoryBean.setSimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        // 还可以设置其他属性，如自定义的序列化器、反序列化器等
        return factoryBean;
    }*/
}
